// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '订单物料计划',
        name: 'OrderMaterialPlanning',
        url: "/OrderMaterialPlanning/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"CraftCode":"","WorkOrderCode":"","BomCode":"","MaterialCode":"","MaterialBatch":"","BatchQuantity":"","ActualUsage":"","CreateTime":""};
    const editFormOptions = [[{"dataKey":"工艺线路","data":[],"title":"工艺线路","field":"CraftCode","type":"number"}],
                              [{"title":"订单编码","required":true,"field":"WorkOrderCode"}],
                              [{"dataKey":"BOM编码","data":[],"title":"BOM编码","field":"BomCode","type":"number"}],
                              [{"dataKey":"物料编码—领取","data":[],"title":"物料编码","field":"MaterialCode","type":"number"}],
                              [{"title":"物料批次","required":true,"field":"MaterialBatch"}],
                              [{"title":"该批次数量","field":"BatchQuantity","type":"number"}],
                              [{"title":"该批次实际用量","field":"ActualUsage","type":"number"}],
                              [{"title":"创建时间","required":true,"field":"CreateTime","type":"date"}]];
    const searchFormFields = {"BomCode":"","MaterialCode":"","MaterialBatch":""};
    const searchFormOptions = [[{"dataKey":"BOM编码","data":[],"title":"BOM编码","field":"BomCode","type":"like"},{"dataKey":"物料编码—领取","data":[],"title":"物料编码","field":"MaterialCode","type":"likeEnd"},{"title":"物料批次","field":"MaterialBatch","type":"like"}]];
    const columns = [{field:'Id',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'CraftCode',title:'工艺线路',type:'int',bind:{ key:'工艺线路',data:[]},width:110,align:'left'},
                       {field:'WorkOrderCode',title:'订单编码',type:'string',width:110,require:true,align:'left'},
                       {field:'BomCode',title:'BOM编码',type:'int',bind:{ key:'BOM编码',data:[]},width:110,align:'left'},
                       {field:'MaterialCode',title:'物料编码',type:'int',bind:{ key:'物料编码—领取',data:[]},width:110,align:'left'},
                       {field:'MaterialBatch',title:'物料批次',type:'string',width:110,require:true,align:'left'},
                       {field:'BatchQuantity',title:'该批次数量',type:'int',width:110,align:'left'},
                       {field:'ActualUsage',title:'该批次实际用量',type:'int',width:110,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}